#ifndef __TASKQUEUE__
#define __TASKQUEUE__

#include "head.h"

typedef struct node_s{ 
    int netfd;//存放客户端的netfd
    struct node_s *pnext;
}node_t;

typedef struct taskQueue_s { 
    int size;
    node_t *phead;
    node_t *ptail;
}taskQueue_t;

int taskQueueInit(taskQueue_t *pqueue);
int tail_insert(taskQueue_t *pqueue,int netfd);
int head_dele(taskQueue_t *pqueue);

#endif


 
